package cn.ym;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication//声明是一个spring boot的启动类
@MapperScan("cn.ym.*.mapper")//扫描多模块的mapper接口。生成Mapper接口的代理对象
public class App {
    public static void main(String[] args) {
        //使用启动类 去 运行Spring程序
        SpringApplication.run(App.class);
    }
}
